package org.caiotte.query;

import lombok.Data;

@Data
public class EmployeeQuery {
    private Integer pageSize = 5;
    private Integer currentPage = 1;
    private String keyword;//关键字查询

    /**
     * 计算每页的起始位置
     * @return
     */
    public Integer getStart(){
        return (this.currentPage - 1) * this.pageSize;
    }
}
